#!/bin/bash
#if your home directory not exist ~/.ssh/id_rsa.pub but exits id_rsa.rsa, excute it !
#openssl rsa -in ~/.ssh/id_rsa.rsa -pubout -out ~/.ssh/id_rsa.pub

#(export ANSIBLE_HOST_KEY_CHECKING=False;sudo ansible-playbook  -i hosts site.yml -k)
#ansible -i hosts -u xuzhigui --private-key=~/.ssh/id_rsa 192.168.0.67 -m setup
#sshpass -p '3e7dH22YGncw&!9sQ274' ansible-playbook -vvvv -i hosts site.yml -k -t $1
ansible-playbook -vv -i hosts --private-key=~/.ssh/id_rsa site.yml -t $1
#ansible-playbook -vvvv -i hosts --private-key=~/.ssh/id_rsa site.yml -t init -l 192.168.88.120
#ansible-playbook -vvvv -i hosts --private-key=~/.ssh/id_rsa site.yml -t zabbix_agentd -l 192.168.88.120

#init_user
#set_hostname
#change_root_password
#init_sysctl
#init
